<template>
  <div>
    <el-tabs v-model="activeName">
      <el-tab-pane v-for="(item,index) in tabList" :key="index" :label="item.label" :name="item.name">
        <component :is="item.component"></component>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import RepaymentCus from './components/RepaymentCus'
import FollowRecord from './components/FollowRecord'
export default {
  components: { RepaymentCus, FollowRecord },
  data () {
    return {
      activeName: 'repaymentCus',
      tabList: [
        { label: '逾期客户', component: 'RepaymentCus', name: 'repaymentCus', refs: 'repaymentCus' },
        { label: '跟进记录', component: 'FollowRecord', name: 'followRecord', refs: 'followRecord' }
      ]
    }
  }
}
</script>
